package edu.sctu.alex.projectPratice.forObject;

import java.util.Random;

/**
 * Created by user03 on 2015/5/26.
 */
public class Queue {

    public int getQueueNumber() {
        return queueNumber;
    }

    public void setQueueNumber(int queueNumber) {
        this.queueNumber = queueNumber;
    }

    private int queueNumber;
    private int waittingPersonNum;

    public String getQueueProgress() {
        return queueProgress;
    }

    public void setQueueProgress(String queueProgress) {
        this.queueProgress = queueProgress;
    }

    private  String queueProgress;

    public int getWaittingPersonNum() {
        return waittingPersonNum;
    }

    public void setWaittingPersonNum(int waittingPersonNum) {
        this.waittingPersonNum = waittingPersonNum;
    }

    public Queue[] setQueue() {

        Random random = new Random();
        Queue queue1 = new Queue();
        queue1.setQueueNumber(1);
        queue1.setWaittingPersonNum(random.nextInt(20));
        queue1.setQueueProgress("快");


        Queue queue2 = new Queue();
        queue2.setQueueNumber(2);
        queue2.setWaittingPersonNum(random.nextInt(20));
        queue2.setQueueProgress("慢");

        Queue queue3 = new Queue();
        queue3.setQueueNumber(3);
        queue3.setWaittingPersonNum(random.nextInt(20));
        queue3.setQueueProgress("慢");


        Queue queue4 = new Queue();
        queue4.setQueueNumber(4);
        queue4.setWaittingPersonNum(random.nextInt(20));
        queue4.setQueueProgress("快");

        Queue queue5 = new Queue();
        queue5.setQueueNumber(5);
        queue5.setWaittingPersonNum(random.nextInt(20));
        queue5.setQueueProgress("不快不慢");


        Queue[] queues = {queue1, queue2, queue3, queue4, queue5};
        return queues;

    }





}







